package bg.btanev.eightyfour.domain.entitybase;

import java.io.Serializable;

/**
 *
 * An entity interface. Marks an entity that has an unique identifier.
 *
 * @author B.Tanev
 *
 * @param <ID>
 *            the type of the unique identifier of the {@link Entity}
 */
interface Entity<ID extends Serializable> {
	/**
	 *
	 * @return An unique identifier of an {@link Entity} or <code>null</code> if the {@link Entity} object is
	 *         <code>transient</code>.
	 */
	ID getId();
}
